<?php
$paginator    = $this->paginator;
?>
<div class="wrapper-content">
    <div class="top-title">
        <div class="content-title">
            <h2><?php echo $this->translate($this->title) ;?></h2>
        </div>
    </div>
    <!-- column left -->
    <div class="span12" id="content-right-2">
        <?php if($paginator): ?>
    	<div class="content-right-2-content" style="margin-top: 20px;">
    	    <?php foreach($paginator as $k => $v): ?>
	    	    <?php if($this->type == 1): ?>
	    	    	<?php $url = "/tour/detail/". $v['id'].'-'.str_replace(' ', '-' ,trim($v['title'])).'.html'; ?>
	    	    <?php elseif($this->type == 2): ?>
		    	    <?php $url = "/". str_replace(' ', '-' ,trim($v['category_title'])). '/'. str_replace(' ', '-' ,trim($v['name'])). '-' .$v['id'] .'.html'; ?>
	    	    <?php endif; ?>
	    		<div class="block-list">
	    		    <div class="block-list-title">
	                    <a href="<?php echo $url; ?>" title="<?php echo $v['title']; ?>">
	                        <?php echo $this->snippet($v['title']); ?>
	                    </a>
	                </div>
	                <div class="block-list-content">
						<a href="<?php echo $url; ?>"><img class="thumbnail" src="<?php echo $v['thumbnail']; ?>" /></a>
	    				<div class="overview">
	    					<?php echo $this->snippet($v['overview'], 140);?>
	    				</div>
	    				<div class="view-detail">
	    				    <a href="<?php echo $url; ?>" class="see-more"><?php echo $this->translate('See more >>'); ?></a>
	    				</div>
	                </div>
	    		</div>
    		<?php endforeach; ?>
    	</div>
    	<?php endif; ?>
    	<!--// pagination -->
    	<div style="width: 100%;float:right;margin-right:10px;">
    	    <?php echo ($paginator ? $this->partial("/components/pager/table_pager.phtml",$this) : "");?>
    	</div>
    </div>
    <!-- column right -->
    <div class="span4" id="content-left-2">
        <?php echo $this->partial('/right-render/support.phtml'); ?>
        <div class="clear"></div>
    </div>
</div>